import { ref } from 'vue'
const degreeMap = ref([
  {
    id: 0,
    value: '本科'
  },
  {
    id: 1,
    value: '硕士'
  },
  {
    id: 2,
    value: '博士'
  }
])

const StatusMap = ref([
  {
    id: 0,
    value: '离校-随时到岗'
  },
  {
    id: 1,
    value: '在校-暂不考虑'
  },
  {
    id: 2,
    value: '在校-考虑机会'
  },
  {
    id: 3,
    value: '在校-月内到岗'
  }
])

const idToDegreeValue = (findid, degreeMap) => {
  return degreeMap.value.find(({ id }) => id === findid)
}

const idToStatusValue = (findid, StatusMap) => {
  return StatusMap.value.find(({ id }) => id === findid)
}
const ValueToStatusid = (findValue, StatusMap) => {
  return StatusMap.value.find(({ value }) => value === findValue)
}
export {
  degreeMap,
  idToDegreeValue,
  StatusMap,
  idToStatusValue,
  ValueToStatusid
}
